$(document).ready(function () {
    setInterval(cloudAnimation, 2000);
    setInterval(cloud1Animation, 3000);
    setInterval(cloud2Animation, 5000);
    setInterval(sunAnimation, 1000);
})
function cloudAnimation() {
    var cloud = $(".cloud");
    $(cloud).animate({
        "left":"130px"
    }, 2000, function () {
        $(cloud).animate({
            "left":"100px"
        }, 2000);
    });
}
function cloud1Animation(){
    var cloud1 = $(".cloud1");
    $(cloud1).animate({
        "left":"230px"
    }, 2000, function () {
        $(cloud1).animate({
            "left":"180px"
        }, 2000);
    });
}
function cloud2Animation(){
    var cloud2 = $(".cloud2");
    $(cloud2).animate({
        "left":"300px"
    }, 2000, function () {
        $(cloud2).animate({
            "left":"260px"
        }, 2000);
    });
}
function sunAnimation() {
    var sun = $(".sun");
    $(sun).animate({
        "opacity":"0.5"
    },500, function () {
        $(sun).animate({
        	"opacity":"1"
        },500);
    });
}
